<%-------------------------------------------------------------------
 * 页面名称：peerBankAccountModify.jsp
 * 功能描述：联系人->银行账户->修改
 * Action  : /peerBankAccountModify.do
 *
 *-------------------------------------------------------------------
--%>
<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-tiles.tld" prefix="tiles"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-bean.tld" prefix="bean"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="ipb" uri="/WEB-INF/conf/tld/ipb.tld"%>
<%@ taglib prefix="ad" uri="agiledata"%>
<%
	String path = request.getContextPath();
	String id = (String) request.getAttribute("id");
%>
<link href="<%=path%>/css/style.css" rel="stylesheet" type="text/css" />
<link href="<%=path%>/css/newstyle.css" rel="stylesheet" type="text/css" />
<link href="<%=path%>/css/common.css" rel="stylesheet" type="text/css" />
<script type='text/javascript' src='<%=path%>/dwr/util.js'></script>
<script type='text/javascript' src='<%=path%>/js/ufront.js'></script>
<script type='text/javascript' src='<%=path%>/dwr/engine.js'></script>
<script language="javascript" type="text/javascript"
	src="<%=path%>/js/choiceCity.js"></script>
<script type='text/javascript'
	src='<%=path%>/dwr/interface/AccountLogic.js'></script>
<script type='text/javascript'
	src='<%=path%>/dwr/interface/accountTemplate.js'></script>
<script type='text/javascript' src='<%=path%>/js/vnv/commonForManage.js'></script>
<SCRIPT LANGUAGE="JavaScript">
	function update() {
		AccountLogic.getCityList(createList, $("provSeq").value);
	}
	function createList(data) {
  		DWRUtil.removeAllOptions("citySeq");
  		DWRUtil.addOptions("citySeq", data,'cityId','cityName');
	}
	function dosubmit() {
		var formObj = document.PeerBankAccountForm;
		if (checkNecessaryInput(formObj) && checkInputMaxlength(formObj) && numberValidate(formObj.cardNo)) {
			if (!checkEmail(formObj.peerEmail)) {
				alert("请输入正确的收款方Email！");
				formObj.peerEmail.focus();
				return;
			}
			
			if (mobileValidate(formObj.peerMobile)) {
				formObj.submit();
			}
		}
	}
</SCRIPT>
<div id="main">
	<div class="content_right">
		<div style="width:745px;margin-left:10px;">
			<div class="titleinfo">
				修改银行账户
			</div>
			<div class="edit_pass">
				<html:form action="/peerBankAccountModify.do" method="post">
					<input name="modifyId" type="hidden" value="<%=id%>" />
					<table width="100%" border="0" align="center" cellpadding="5"
						cellspacing="1">
						<tr>
							<td width="22%" height="30" align="right">
								<span class="orang12b">*</span> 收款方姓名：
							</td>
							<td width="78%" bgcolor="#FFFFFF">
								<html:text property="peerName" alt="收款方姓名" maxlength="255"
									size="35" styleClass="inputStyle" />
							</td>
						</tr>
						<tr>
							<td height="30" align="right">
								<span class="orang12b">*</span> 银行名称：
							</td>
							<td bgcolor="#FFFFFF">
								<html:select property="bankSeq" alt="银行名称">
									<html:option value="">请选择</html:option>
									<html:options collection="bankList" property="id"
										labelProperty="bankName" />
								</html:select>
							</td>
						</tr>
						<tr>
							<td height="30" align="right">
								<span class="orang12b">*</span> 开户行省份：
							</td>
							<td bgcolor="#FFFFFF">
								<html:select property="provSeq" onchange="update()" alt="开户行省份">
									<html:option value="">请选择</html:option>
									<html:options collection="province" property="cityId"
										labelProperty="cityName" />
								</html:select>
							</td>
						</tr>
						<tr>
							<td height="30" align="right">
								<span class="orang12b">*</span> 开户行城市：
							</td>
							<td bgcolor="#FFFFFF">
								<html:select property="citySeq" alt="开户行城市">
									<html:option value="">请选择</html:option>
									<html:options collection="city" property="cityId"
										labelProperty="cityName" />
								</html:select>
							</td>
						</tr>
						<tr>
							<td height="30" align="right">
								<span class="orang12b">*</span> 开户行名称：
							</td>
							<td bgcolor="#FFFFFF">
								<html:text property="bankName" alt="开户行名称" maxlength="255"
									size="35" styleClass="inputStyle" />
							</td>
						</tr>
						<tr>
							<td height="30" align="right" valign="top">
								<span class="orang12b">*</span> 银行账号：
							</td>
							<td bgcolor="#FFFFFF">
								<html:text property="cardNo" alt="银行账号" size="35"
									styleClass="inputStyle" readonly="true" />
								<span class="font_gray"><br /> (不允许修改) </span>
							</td>
						</tr>
						<tr>
							<td height="30" align="right">
								收款方Email：
							</td>
							<td bgcolor="#FFFFFF">
								<html:text property="peerEmail" title="收款方Email" maxlength="255"
									size="35" styleClass="inputStyle" />
								<span class="font_gray">(可选)</span>
							</td>
						</tr>
						<tr>
							<td height="30" align="right">
								收款方电话：
							</td>
							<td bgcolor="#FFFFFF">
								<html:text property="peerPhone" title="收款方电话" maxlength="32"
									size="35" styleClass="inputStyle" />
								<span class="font_gray">(可选)</span>
							</td>
						</tr>
						<tr>
							<td height="30" align="right">
								收款方手机：
							</td>
							<td bgcolor="#FFFFFF">
								<html:text property="peerMobile" title="收款方手机" maxlength="32"
									size="35" styleClass="inputStyle" />
								<span class="font_gray">(可选)</span>
							</td>
						</tr>
						<tr>
							<td height="30" align="right" valign="top">
								备注：
							</td>
							<td bgcolor="#FFFFFF">
								<html:textarea property="remark" cols="45" rows="5"
									style="border:1px solid #ccc;" title="maxlength:100;title:备注"></html:textarea>
								<br />
								<span class="font_gray">可选(100个字) </span>
							</td>
						</tr>
					</table>
					<div class="button_Frame">
						<input type="button" class="button_style" value="确 定"
							onclick="dosubmit();" />
						<input type="button" class="button_style" value="返 回"
							onclick="location.href='<%=path%>/page/myspace/getPeerBankAccountList.do';" />
					</div>
			</div>
			</html:form>
		</div>
	</div>
</div>
